package practice.library.webmagic

import practice.library.webmagic.processor_test.RomeOfQyerPageProcessorTest
import practice.library.webmagic.processor.qyer.QyerCommon
import us.codecraft.webmagic.{Page, Site, Spider}
import us.codecraft.webmagic.processor.PageProcessor
import utility.CustomLogger


/**
  * Created by lovepocky(lovepocky@foxmail.com) on 2016/6/12.
  */
object WebMagicMain extends CustomLogger {
	def main(args: Array[String]) {
		loggers.console.info("Start")
		//Spider.create(new GithubRepoPageProcessorExample).addUrl("https://github.com/code4craft").thread(5).run()
		//Spider.create(new RomeOfQyerPageProcessorTest).addUrl("http://place.qyer.com/rome/").thread(5).run()
		
		//rome of qyer
		Spider.create(processor.qyer.SubPlaceOfPlaceProcessor("rome")).addUrl(QyerCommon.api.city("rome")).thread(5).run()
	}
	
}



 
